import * as types from "../types";
const reducer = (
  state = {
    bannerList: [],
    proList: [],
  },
  { type, payload }
) => {
  switch (type) {
    case types.CHANGE_BANNER_LIST:
      return { ...state, bannerList: payload };
    case types.CHANGE_PRO_LIST:
      return { ...state, proList: payload };

    default:
      return state;
  }
};
export default reducer;
